import http from '@/utils/http'
import { NoticeResponseData } from '../types/home'

enum API {
    // 最新公告内容
    NOTICE_URL = '/api/notice/newmsg'
}

// 获取最新公告
export const reqNotice = (roleName:string) => http.get<any,NoticeResponseData>(API.NOTICE_URL,{params:{roleName}})